package com.yfqy.app.domain.mapper;

import com.yfqy.app.domain.entity.CustomerAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerAddressMapper {

    int insert(CustomerAddress record);

    CustomerAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustomerAddress record);

    int clearDefaultFlag(Long customerId);

    void setDefaultAddress(CustomerAddress address);

    List<CustomerAddress> customerAddress(Long customerId);

    void deleteAddress(@Param("id") Long id);
}